Skip to content

test: replace internals with public API#25309

Closed
Trott wants to merge 1 commit intonodejs:masterfrom
Trott:de-internal
Closed

test: replace internals with public API#25309
Trott wants to merge 1 commit intonodejs:masterfrom
Trott:de-internal

Conversation

@Trott
Copy link
Member

@Trott Trott commented Jan 2, 2019

Remove instances where --expose-internals is used to gain access to
buffer.kStringMaxLength. The property is availalble without a flag. It
is undocumented but the same as the documented
buffer.constants.MAX_STRING_LENGTH so use that. (We even have a test
that confirms that they are the same value.)

Checklist
  • make -j4 test (UNIX), or vcbuild test (Windows) passes
  • commit message follows commit guidelines

Loading
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

addons Issues and PRs related to native addons. author ready PRs that have at least one approval, no pending requests for changes, and a CI started. test Issues and PRs related to the tests.

Projects

None yet

Development

Successfully merging this pull request may close these issues.

6 participants